package org.jadapter.examples.payment;

import org.jadapter.annotations.Adapter;

/**
 * @author pjesi
 * Date: Jan 19, 2011
 * Time: 11:26:24 PM
 */
@Adapter
public class ReceiptPaymentBean implements Payment {

    private Receipt receipt;

    public ReceiptPaymentBean(Receipt receipt) {
        this.receipt = receipt;
    }

    public void pay() {
        int amountToPay = receipt.getAmount();
        System.out.println("Amount payed is " + amountToPay);
    }


}
